﻿using Domain.Entities;
using Domain.Entities.HealthManages;
using FluentMigrator;
using FrameworkCore.Extensions;

namespace AiBLSmartEdu.Module.AIHealthManage.API.Migrations;

[Migration(202506181524)]
public class HealthRecordAddGlucoseMeasureTimeColumn : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table(MigrationExpressions.GetTableName(typeof(HealthRecord)))
          .AddColumn(MigrationExpressions.ColumnNameFor<HealthRecord>(nameof(HealthRecord.GlucoseMeasureTime))).AsDateTime().Nullable().WithColumnDescription("血糖测量时间（记录最后一次测量的时间）");
    }
}